﻿using System;
using System.Collections.Generic;
using DesignPattern.FactoryMethod.Product;

namespace DesignPattern.FactoryMethod
{
    /// <summary>
    /// Acer电脑工厂，生产Acer电脑
    /// </summary>
    public class AcerComputerFactory : FactoryComputer
    {
        public AcerComputerFactory()
        {
            Console.WriteLine("Begin : AcerComputerFactory CreateComputer");
        }

        /// <summary>
        /// 生产Acer电脑
        /// </summary>
        /// <returns></returns>
        public override Product.AbsComputerProduct CreateComputer()
        {
            return new AbsComputerProduct();
        }

    }
}
